<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>用户注册</title>
    <link rel="stylesheet" href="{{ url_for('static', filename='css/style.css') }}">
</head>
<body>
    <div class="container">
        <h2>用户注册</h2>
        {% if error %}
            <div class="alert alert-danger">{{ error }}</div>
        {% endif %}
        <form method="POST" action="{{ url_for('register') }}">
            <div class="form-group">
                <label for="username">用户名</label>
                <input type="text" id="username" name="username" required>
            </div>
            <div class="form-group">
                <label for="password">密码</label>
                <input type="password" id="password" name="password" required>
            </div>
            <div class="form-group">
                <label for="tags">选择用户标签</label>
                <select id="tags" name="tags" multiple>
                    <option value="标签1">标签1</option>
                    <option value="标签2">标签2</option>
                    <option value="标签3">标签3</option>
                    <option value="标签4">标签4</option>
                </select>
            </div>
            <div class="form-group">
                <label for="query">查询用户名</label>
                <input type="text" id="query" name="query">
            </div>
            <button type="submit">注册</button>
        </form>
        <p>已经有账户？<a href="{{ url_for('login') }}">登录</a></p>
    </div>
</body>
</html>